<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:72:"/var/www/dangan_new/public/../application/index/view/File/auditFile.html";i:1547548509;}*/ ?>
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            <h4 class="modal-title">文件归档</h4>
        </div>
        <div class="modal-body">
            <?php if($data['interfile_status'] == 1): ?><form class="modalForm form-horizontal" action=" <?php echo url('index/File/auditFile'); ?>" method="post"><?php endif; if($data['interfile_status'] == 2): ?><form class="modalForm form-horizontal" action=" <?php echo url('index/File/secondsh'); ?>" method="post"><?php endif; ?>
                <input type="hidden" name="id" value="<?php echo $data['interfile_id']; ?>">
                <input type="hidden" name="fq" class="fq" value="0">
                <input type="hidden" name="dh" class="dh" value="0">

                <div class="form-body">
                    <div class="form-group">
                        <label class="col-md-3 control-label">待归档文件</label>
                        <div class="col-md-9">
                            <input type="text" readonly class="form-control guidf" value="<?php echo $data['arc_name']; ?>.<?php echo $data['arc_type']; ?>" placeholder="请输入文件夹名称">
                            <input type="hidden" name="arc_id" value="<?php echo $data['arc_id']; ?>" class="arc_id">
                            <span class="help-block">选择待归档的文件</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">归档到</label>
                        <div class="col-md-9">
                            <input type="text" readonly class="form-control guidp" value="<?php echo $data['path']; ?>" placeholder="请输入归档到">
                            <input type="hidden" name="interfile_cate_id" value="<?php echo $data['interfile_cate_id']; ?>" class="interfile_cate_id">
                            <span class="help-block">选择归档到的目录</span>
                        </div>
                    </div>
                    <?php if($data['interfile_status'] == 2): ?>
                    <div class="form-group">
                        <label class="col-md-3 control-label">其他评审意见</label>
                        <div class="col-md-9">
                            <span class="help-block"><?php echo $data['update_username']; ?></span>
                            <input type="text" readonly class="form-control guidp" value="<?php echo $data['interfile_audit_comments']; ?>">
                            
                        </div>
                    </div>
                    <?php endif; if($data['interfile_status'] == 3): ?>
                    <div class="form-group">
                        <label class="col-md-3 control-label">该文档已经归档</label>
                        <div class="col-md-9">
                            <span style="font-size: 15px;line-height: 24px;">流程历史</span>
                            <ol style="color: #BBBBBB;font-size:14px;line-height: 21px;">
                                <li><?php echo $ndata['0']['create_time']; ?>&emsp;<?php echo $ndata['0']['user_name']; ?>&emsp;<?php echo $ndata['0']['backup_reasons']; ?></li>
                                <li><?php echo $ndata['1']['create_time']; ?>&emsp;<?php echo $ndata['1']['user_name']; ?>&emsp;<?php echo $ndata['1']['backup_reasons']; ?>&emsp;<?php echo $ndata['1']['interfile_audit_comments']; ?></li>
                                <li><?php echo $ndata['2']['create_time']; ?>&emsp;<?php echo $ndata['2']['user_name']; ?>&emsp;<?php echo $ndata['2']['backup_reasons']; ?>&emsp;&emsp;&emsp;<?php echo $ndata['2']['interfile_audit_comments']; ?></li>
                            </ol>
                        </div>
                    </div>
                    <?php else: ?>
                    <div class="form-group">
                        <label class="col-md-3 control-label"><?php if($data['interfile_status'] == 1): ?>评审意见<?php else: ?>审核评论<?php endif; ?></label>
                        <div class="col-md-9">
                            <textarea name="interfile_audit_comments" class="form-control"></textarea>
                        </div>
                    </div>
                    <?php endif; ?>
                </div>
            </form>
        </div>
        <div class="modal-footer" style="border-top: 0;">
            <?php if($data['interfile_status'] == 3): ?><button type="button" class="btn default model1close" data-dismiss="modal">关闭</button>
            <?php else: ?>
            <button type="button" class="btn default model1close" data-dismiss="modal">关闭</button>
            <?php if($data['interfile_status'] == 1): ?><button type="button" class="btn red fqBtn">废弃</button><?php else: ?><button type="button" class="btn red dhBtn">打回</button><?php endif; ?>
            <button type="button" class="btn blue save">通过</button>
            <?php endif; ?>
        </div>
    </div>
</div>


<script>
    dt().modalSave();
</script>